package com.baseDemo.web.service.role;

import java.util.List;
import java.util.Set;

import com.baseDemo.web.entity.AuthorityEntity;
import com.baseDemo.web.entity.RoleEntity;
import com.baseDemo.web.entity.UserEntity;
import com.share.hibernate.baseDaoSupport.PageUtil;
import com.share.hibernate.baseDaoSupport.TreeUtil;
import com.share.service.baseServiceSupport.BaseService;

public interface RoleService extends BaseService<RoleEntity>{
	public PageUtil getListForPageToJson(Integer start,Integer limit);
	public String updateRole(RoleEntity roleEntity);
	public Set<UserEntity> getUsers(String roleId);
	public String addUsersForRole(String roleId,Set<UserEntity> userEntities);
	public String deleteUsersForRole(String roleId,Set<UserEntity> userEntities);
	
	public List<TreeUtil> getAuthorityList();
	
	public  String updateAuthority(List<String> authorities ,String roleId);
	
	public Set<AuthorityEntity> getAuthoritiesByRole(String roleId);
}
